<form id="add-form" class="form-horizontal" role="form" data-toggle="validator"  method="POST">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">费用信息：</label>
        <div class="col-xs-12 col-sm-10">
            <div class="panel panel-danger">
                <div class="panel-heading">当前任务费用信息</div>
                <div class="panel-body">
                    <div>选择项费用信息： {$select_sum}</div>
                    <div>本页费用信息： {$current_sum}</div>
                    <div>当前任务费用信息： {if condition="$task_sum eq false"}<span class="text-danger">未选择任务</span>
                        {else /}
                        {$task_sum}
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">打款方式:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('pay_type', ['0'=>'线下支付', '1'=>'线上支付'], '0', ['data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">打款人员:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="pay-1"><input id="pay-1" name="target" type="radio" value="{$select}" checked> 选中</label>
                <label for="pay-2"><input id="pay-2" name="target" type="radio" value="{$current}"> 本页</label>
                <label for="pay-3"><input id="pay-3" name="target" {if condition="$task_sum eq false"} disabled{/if} type="radio" value="all" data-task_id = "{$task_id}">
                    {if condition="$task_sum eq false"}<span class="text-danger">未选择任务</span>
                    {else /}
                        当前任务
                    {/if}
                </label>
                <input type="hidden" name="task_id" value="{$task_id}">
            </div>
        </div>
    </div>
    <div class="form-group order_sn_wrap">
        <label class="control-label col-xs-12 col-sm-2">打款状态:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="transfer_type-2"><input id="transfer_type-2" name="transfer_type" type="radio" value="2" checked> 打款成功</label>
                <label for="transfer_type-3"><input id="transfer_type-3" name="transfer_type" type="radio" value="3"> 打款失败</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">打款备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control " rows="5" name="remark" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>

    </div>
</form>
